package com.bizihang.common.security.core.properties;


import com.bizihang.common.security.core.properties.browser.BrowserProperties;
import com.bizihang.common.security.core.properties.code.ValidateCodeProperties;
import com.bizihang.common.security.core.properties.server.OAuth2Properties;
import com.bizihang.common.security.core.properties.social.SocialProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * security实例配置
 *
 * @author 毕子航 951755883@qq.com
 * @date 2018/10/19
 */
@ConfigurationProperties(prefix = "bzh.security")
public class SecurityProperties {
	/**
	 * 浏览器环境配置
	 */
	private BrowserProperties browser = new BrowserProperties();
	/**
	 * 验证码配置
	 */
	private ValidateCodeProperties code = new ValidateCodeProperties();
	/**
	 * 社交登录配置
	 */
	private SocialProperties social = new SocialProperties();
	/**
	 * OAuth2认证服务器配置
	 */
	private OAuth2Properties oauth2 = new OAuth2Properties();

	public BrowserProperties getBrowser() {
		return browser;
	}

	public void setBrowser(BrowserProperties browser) {
		this.browser = browser;
	}

	public ValidateCodeProperties getCode() {
		return code;
	}

	public void setCode(ValidateCodeProperties code) {
		this.code = code;
	}

	public SocialProperties getSocial() {
		return social;
	}

	public void setSocial(SocialProperties social) {
		this.social = social;
	}

	public OAuth2Properties getOauth2() {
		return oauth2;
	}

	public void setOauth2(OAuth2Properties oauth2) {
		this.oauth2 = oauth2;
	}
}

